package com.cc.persistent.mapper;

import com.cc.persistent.model.Book;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BookMapper {
    int addBook(Book book);

    int deleteBookById(Integer id);

    int updateBookById(Book book);

    Book getBookById(int id);

    List<Book> getAllBooks();
}